package com.delicious.core.dict.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.delicious.core.dict.vo.DictTypePageResponse;
import com.delicious.core.dict.vo.DictTypeRequest;
import com.delicious.core.dict.vo.DictTypeResponse;
import com.delicious.core.dict.entity.SysDictType;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface DictTypeConverter {

    Page<DictTypePageResponse> entity2Page(Page<SysDictType> page);

    DictTypeResponse entity2Form(SysDictType entity);

    SysDictType form2Entity(DictTypeRequest dictTypeForm);
}